import type { App } from 'vue'
import { prototypeInterceptor } from './prototype'
import { requestInterceptor } from './request'
import { routerInterceptor } from './router'

export function setupInterceptors(app: App<Element>) {
  app.use(routerInterceptor)
  app.use(requestInterceptor)
  app.use(prototypeInterceptor)
}
